
<div ng-controller="applygridinCtrl">
  <div class="modal-body" style="min-height:400px">
      <form class="form-horizontal form-validation" name="addvmForm">
        <div class="form-group">
            <div class="col-lg-12">
               <label class="control-label">集群：</label>
               <div class="control-input">
                 <select class="form-control" name="city" ng-model="clusterId" validator="required">
                   <option value="">--请选择--</option>
                   <option ng-repeat="item in masterData"  value="{{item.id}}" ng-bind="item.name"></option>
                 </select>
               </div>
              </div>
       </div>
          <div class="form-group">
              <div class="col-lg-12">
                <label class="control-label">脚本内容：</label>
                  <div class="control-input">
                    <ui-select ng-model="scriptItem.selected" style="margin-bottom:10px" ng-change="showComposeFile()" theme="bootstrap">
                      <ui-select-match placeholder="选择或者从列表中搜索一个脚本">{{$select.selected.name}}</ui-select-match>
                      <ui-select-choices repeat="item in composeList | filter: $select.search">
                        <div ng-bind-html="item.name | highlight: $select.search"></div>
                      </ui-select-choices>
                    </ui-select>
                    <div class="control-input" ng-if="code" ng-code-mirror2="" code-mirror="codeMirror.codeMirror" >
                   		<div class="code-type" data-content="必填项">

                   		</div>
                   		<textarea class="textarea"></textarea>
                     </div>
      	         </div>
              </div>
          </div>

      </form>
  </div>
  <div class="modal-footer">
      <button type="submit" class="btn btn-info"   ng-click="layoutDeploy()">确认</button>

  </div>
</div>
